<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
 /* Set URLs */
 $manageAcc_link = "/user_account.php";
 $editData_link = "/editData.php";
 $editTemplate_link = "/eTemplates.php";
 $publishDoc_link = "/dbPublish.php";
 $editSchema_link = "/eSchema.php";
 $adminAcc_link = "/admin.php";
 $homepage_link = "/index.php";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>DoctorDoc</title>
  <link rel="stylesheet" type="text/css" href="styles/main.css" /> 
  <link rel="stylesheet" type="text/css" href="styles/table-style.css" />
  <link rel="stylesheet" type="text/css" href="styles/table-scroll.css" /> 
  <style type="text/css">
   td { vertical-align: top; }
  </style>
 </head>
 <body>
 <div id="wrapper">


<p id="login-info">
<?php
if (isset($_SESSION['name'])) {
    echo "You are currently logged in as: " . $_SESSION['name'];
} else {
    echo "You are currently NOT logged in.";

}
?>

</p>

  <div id='navigation'>
<?php
echo '<h1 id="header"><a href="'.$homepage_link.'"';
if ($_SERVER["PHP_SELF"]==$homepage_link) {
	echo ' class="selected"';
}
echo '>DoctorDoc</a></h1>';


echo "<ul>\n";
/* Administration Link */
if (isset($_SESSION['access_level']) && $_SESSION['access_level'] == 3) {
echo '<li><a href="'.$adminAcc_link.'"';
if ($_SERVER["PHP_SELF"]==$adminAcc_link) {
	echo ' class="selected"';
}
echo '>Administrator</a></li>';
}

/* Manage Account Link */
echo '<li><a href="'. $manageAcc_link .'"';
if ($_SERVER["PHP_SELF"]==$manageAcc_link) {
	echo ' class="selected"';
}
echo '>Account</a></li>';

/* Edit Data Link */
echo '<li><a href="' . $editData_link .'"';
if ($_SERVER["PHP_SELF"]==$editData_link) {
	echo ' class="selected"';
}
echo '>Data</a></li>';

/* Edit Schema Link */
echo '<li><a href="'. $editSchema_link .'"';
if ($_SERVER["PHP_SELF"]==$editSchema_link) {
	echo ' class="selected"';
}
echo '>Schema</a></li>';

/* Edit Templates Link */
echo '<li><a href="' . $editTemplate_link . '"';
if ($_SERVER["PHP_SELF"]==$editTemplate_link) { 
	echo ' class="selected"';
}
echo '>Templates</a></li>';

/* Publish Documents Link*/
echo '<li><a href="' . $publishDoc_link . '"';
if ($_SERVER["PHP_SELF"]==$publishDoc_link) {
	echo ' class="selected"';
}
echo '>Publish</a></li>';

/* Login/Logout Link */
echo '<li>';
if (isset($_SESSION['user_id'])) {
    echo '<a href="transact_user.php?action=Logout">Logout</a>';
} 
?></li>
  </ul>
 </div>

  <div id="mainpage" class="clear">
